<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div class="container">
        性别：
        <input type="radio" value="male" v-model="sex">男
        <input type="radio" value="female" v-model="sex">女
        <br>

        <input type="checkbox" value="football" v-model="hobbies">足球
        <input type="checkbox" value="basketball" v-model="hobbies">篮球
        <input type="checkbox" value="swimming" v-model="hobbies">游泳
        <br>

        同意：<input type="checkbox" v-model="flag">
       
    </div>

    <script>
        new Vue({
            el: '.container',
            data: {
                sex: 'male',
                hobbies: [],
                flag: null
            }
        })
    </script>
</body>
</html>